]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
Remove an explicit destroy to the ClutterText actor
authorCosimo Cecchi <cosimo@endlessm.com>
Tue, 27 Aug 2013 20:47:19 +0000 (13:47 -0700)
committerCosimo Cecchi <cosimoc@gnome.org>
Tue, 6 Jun 2017 15:38:45 +0000 (08:38 -0700)
This is the same as the previous commit, but for StEntry.
We don't have any need to explicitly destroy this actor in our dispose
implementation, and doing so breaks the assumption that we can access
the clutter_text from within destroy.

https://bugzilla.gnome.org/show_bug.cgi?id=783483

src/st/st-entry.c

index 264f95657084a0e4e16a54a50483d640b1378ad2..0fa9287679ad568e060e0c2cecdc47eaf8ac9a98 100644 (file)
@@ -230,12 +230,6 @@ st_entry_dispose (GObject *object)
   StEntryPrivate *priv = ST_ENTRY_PRIV (entry);
   GdkKeymap *keymap;
 
-  if (priv->entry)
-    {
-      clutter_actor_destroy (priv->entry);
-      priv->entry = NULL;
-    }
-
   keymap = gdk_keymap_get_for_display (gdk_display_get_default ());
   g_signal_handlers_disconnect_by_func (keymap, keymap_state_changed, entry);